<extend name="_layout/head" />
<block name="seo">
		<title>{$category['name']} -{$setting['site_name']}</title>
		<meta name="keywords" content="{$setting['seo_keywords']}">
		<meta name="description" content="{$setting['seo_description']}">
</block>
<block name="content">
    <div class="wrapper mt30">
        <div class="main fl">
            <div class="long-nav mb10">
			<volist name="category_list" id="val">
                <a href="{:U('Article/index',array('catid'=>$val['id']))}" <eq name="catid" value="$val.id">class="item current"<else/>class="item"</eq>>{$val.name}</a>
			</volist>
            </div>
            <ul class="list-news">
			<volist name="result" id="val">
                <li class="item">
                	<notempty name="val['thumb']">
                	<a href="{:U('Article/view',array('id'=>$val['id']))}"><img class="figure" src="{$val.thumb}" alt="" width="210" height="150" /></a>
                    </notempty>
                    <div class="con">
                        <div class="head"><div class="date">{:format_time($val['publish_time'],false)}</div><div class="tit"><a href="{:U('Article/view',array('id'=>$val['id']))}">{$val.title}</a></div></div>
                        <div class="info">{$val.author}</div>
                        <div class="desc">{$val['summary']|strip_tags|msubstr=###,50,'...'}</div>
                    </div>
                </li>
			</volist>
            </ul>
            <div class="ui-page-wrap">
                <ul class="ui-page">
                    {$page}
                </ul>
            </div>
        </div>
        <div class="aside fr">
            <div class="aside-section">
          <div class="ui-head">
            <div class="head-tit">名家论市</div>
            <div class="more">
              <a href="{:U('Blog/lists')}">更多>></a>
            </div>
          </div>
          <div class="aside-fat-list">
            <a class="read_link" viewcost="{$blog_laoguai[0]['view_cost']}" href="{:U('Blog/article_view',array('id'=>$blog_laoguai[0]['id']))}"><img class="figure" src="{$blog_laoguai[0].avatar}" alt="" /></a>
            <div class="txt">
              <div class="tit"><a class="read_link" viewcost="{$blog_laoguai[0]['view_cost']}" href="{:U('Blog/article_view',array('id'=>$blog_laoguai[0]['id']))}">{$blog_laoguai[0].title}</a> <gt name="blog_laoguai[0]['view_cost']" value="0"><font color='red'>付</font></gt></div>
              <div class="info"><a href="{:U('Blog/index',array('id'=>$blog_laoguai[0]['id']))}">博主：{$blog_laoguai[0].username}</a><br>{$blog_laoguai[0].last_update_time|format_time=###,false}</div>
            </div>
            <div class="desc">{$blog_laoguai[0].summary|msubstr=###,60,'..'}</div>
          </div>
          <ul class="ui-nlist triangle">
          	<volist name="blog_laoguai" id="item" offset="1" length="2">
            <li><a class="read_link" viewcost="{$item.view_cost}" href="{:U('Blog/article_view',array('id'=>$item['id']))}">{$item.title}</a> <gt name="item.view_cost" value="0"><font color='red'>付</font></gt></li>
            </volist>
          	<volist name="mingjia" id="item">
            <li><a class="read_link" viewcost="{$item.view_cost}" href="{:U('Blog/article_view',array('id'=>$item['id']))}">{$item.title}</a> <gt name="item.view_cost" value="0"><font color='red'>付</font></gt></li>
            </volist>
            
          </ul>
        </div>
            <!--<div class="aside-section">
                <div class="ui-head">
                    <div class="head-tit">股市分析</div>
                </div>
                <div>
                    <iframe src="http://finance.baidu.com/static/finannews/ui/html/bdhx_finacial.html" height="270" width="300" id="f1" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="-webkit-transform: scale(0.9, 1); -webkit-transform-origin: 0px 0px; margin:auto;display:block; overflow: hidden;"></iframe>
                </div>
            </div>-->
            <div class="broadcast-wrap mt30">
              <iframe width="100%" align="center" height="278" id="win" frameborder="0" scrolling="yes" src="http://www.cailianpress.com/cls_roll_news.html"></iframe>
            </div>
        </div>
    </div>
</block>
<block name="footer">
	<script>
		$('.read_link').click(function(){
	    	var cost = $(this).attr("viewcost");
	    	var href = $(this).attr('href');
	    	if(cost > 0){
	    		layer.open({
	    			title:'收费提示',
	    			content:'阅读该博文需要支付'+cost+'牛币,已付费的用户请忽略',
	    			btn:['确定阅读','不阅读'],
	    			yes:function(index){
	    				layer.close(index);
	    				document.location.href = href;
	    			},
	    			cancel:function(index){
	    				layer.close(index);
	    				return false;
	    			}
	    		});    		
	    	}else{
	    		document.location.href = href;
	    	}    	
	    	return false;
	    }); 
	</script>
</block>
